package com.borya.model.entity;

import org.apache.commons.lang3.StringUtils;

import java.util.Objects;

public class SelfRegistering {
    //此类保存商户自注册相关参数
    private String phone;//电话号码
    private String supper_invite_code = "";//上级邀请码
    private int registType;//绑定上级商户方式,1无设备，通过邀请码绑定上级商户2有设备，通过设备号绑定商户
    private int merchantType = 1;//商户属性
    private int user_type_id = 9;//用户属性
    private String user_name;//新增商户company_name，主工号user_name
    private String company_name;//新增商户company_name，主工号user_name
    private String idCard;//证件号码，可能是身份证或营业执照号
    private String cityCode;//城市编码
    private String cityName;//城市名称
    private String address;//地址
    private String imgNo1;//门店照片左
    private String imgNo2;//门店照片由
    private String imgNo3;//手持照片
    private String imgNo4;//签名照片
    private String businessLicensePicture="";//商户营业执照照片
    private Long createTime;//创建时间
    private int status = 1;//0已激活1未激活
    private String user_id;//子工号id
    private String extUserId;//sdk使用方工号id
    private String invite_code;//邀请码
    private int is_main = 1;//主工号标识
    private String dealer_id;//商户id
    private String alipay_user_id = "";//支付宝账户
    private String weixin_user_id = "";//微信账户
    private String KMRecordCode;//设备号
    private String KMRecordCode_dealerId;//设备号对应dealerid

    private String osversion;
    private String appversion;
    private String ostype;
    private String phonetype;
    private String net;
    private String applicationID;
    private String host_ip;
    private String longitude;
    private String latitude;
    private String signMergePicture;// 签名合并的图片

    private String devMacAddress = "";//设备号地址

    private long modifyTime;//创建时间
    private int merchant_attribute;//商户卖卡权限 1 : A 远特发展线	2 : B 联通发展线	3 : C A申请联通卡权限	4 : D B申请远特卡权限
    private int type;//业务范围；1远特，2联通，3移动，4电信
    private String scope;//区域；北京市，江苏省
    private String popchannel = "";
    private String head_popchannel = "";
    private String popchannel_name = "";
    private String head_popchannel_name = "";


    private String super_dealer_id = "";//邀请码对应上级商户号
    private String super_dealer_name = "";//邀请码对应上级商户名

    private String phoneModel;
    private String discountModel;
    private String transterModel;//转账模式
    private long signTime;//签字时间
    private String orderId;//商户激活订单号
    private String oldDealerId;//游客老dealerId


    private String period;//身份证有效期
    private String headPicture;//身份证头像

    private String storeAddress;//门店地址
    //商户售卡范围分区域所需
    private String scopeId;//开通区域编码


    private String superSuperDealerId;
    private String superSuperDealerName;
    private int isManage;//是否时管理设备
    private String packModel;

    private String dwkModel;//大网卡返佣模式

    private String merchantId;//系统商户id
    private int sourceType;//1卡盟2喜牛

    private long whiteCardPay;//大众号白卡制卡费
    private long whiteCardReturn;//大众号白卡制卡费返回
    private int detailType;
    private int checkLocationFlag;
    private int checkLocation;
    private String identityCard; // 身份证号码(企业专用)
    private String identityCardName;// 身份证姓名(企业专用)
    private String identityCardAddress; // 身份证地址(企业专用)
    private String shopAddress; // 门店所在地区(原有具体地址拆开储存，省市区)
    private String shopSpecificAddress; // 门店具体地址(原有具体地址拆开储存，具体地址)
    private String identifyPhotoHead; // 身份证头像照片地址(企业专用)
    private String identifyPhotoFront; // 身份证正面照片地址(企业专用)
    private String identifyPhotoReverse; // 身份证背面照片地址(企业专用)
    private String identifyPhotoHand; // 手持身份证照片地址(企业专用)

    public int getCheckLocationFlag() {
        return checkLocationFlag;
    }

    public void setCheckLocationFlag(int checkLocationFlag) {
        this.checkLocationFlag = checkLocationFlag;
    }

    public int getCheckLocation() {
        return checkLocation;
    }

    public void setCheckLocation(int checkLocation) {
        this.checkLocation = checkLocation;
    }

    public int getDetailType() {
        return detailType;
    }

    public void setDetailType(int detailType) {
        this.detailType = detailType;
    }

    public long getWhiteCardPay() {
        return whiteCardPay;
    }

    public void setWhiteCardPay(long whiteCardPay) {
        this.whiteCardPay = whiteCardPay;
    }

    public long getWhiteCardReturn() {
        return whiteCardReturn;
    }

    public void setWhiteCardReturn(long whiteCardReturn) {
        this.whiteCardReturn = whiteCardReturn;
    }

    public int getSourceType() {
        return sourceType;
    }

    public void setSourceType(int sourceType) {
        this.sourceType = sourceType;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getDwkModel() {
        return dwkModel;
    }

    public void setDwkModel(String dwkModel) {
        this.dwkModel = dwkModel;
    }


    public String getPackModel() {
        return packModel;
    }

    public void setPackModel(String packModel) {
        this.packModel = packModel;
    }

    public String getPopchannel() {
        return popchannel;
    }

    public void setPopchannel(String popchannel) {
        if (popchannel != null)
            this.popchannel = popchannel;
    }

    public String getHead_popchannel() {
        return head_popchannel;
    }

    public void setHead_popchannel(String head_popchannel) {
        if (head_popchannel != null)
            this.head_popchannel = head_popchannel;
    }

    public String getPopchannel_name() {
        return popchannel_name;
    }

    public void setPopchannel_name(String popchannel_name) {
        if (popchannel_name != null)
            this.popchannel_name = popchannel_name;
    }

    public String getHead_popchannel_name() {
        return head_popchannel_name;
    }

    public void setHead_popchannel_name(String head_popchannel_name) {
        if (head_popchannel_name != null)
            this.head_popchannel_name = head_popchannel_name;
    }

    public String getOsversion() {
        return osversion;
    }

    public void setOsversion(String osversion) {
        this.osversion = osversion;
    }

    public String getAppversion() {
        return appversion;
    }

    public void setAppversion(String appversion) {
        this.appversion = appversion;
    }

    public String getOstype() {
        return ostype;
    }

    public void setOstype(String ostype) {
        this.ostype = ostype;
    }

    public String getPhonetype() {
        return phonetype;
    }

    public void setPhonetype(String phonetype) {
        this.phonetype = phonetype;
    }

    public String getNet() {
        return net;
    }

    public void setNet(String net) {
        this.net = net;
    }

    public String getApplicationID() {
        return applicationID;
    }

    public void setApplicationID(String applicationID) {
        this.applicationID = applicationID;
    }

    public String getHost_ip() {
        return host_ip;
    }

    public void setHost_ip(String host_ip) {
        this.host_ip = host_ip;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSupper_invite_code() {
        return supper_invite_code;
    }

    public void setSupper_invite_code(String supper_invite_code) {
        if (supper_invite_code != null)
            this.supper_invite_code = supper_invite_code;
    }

    public int getRegistType() {
        return registType;
    }

    public void setRegistType(int registType) {
        this.registType = registType;
    }

    public int getMerchantType() {
        return merchantType;
    }

    public void setMerchantType(int merchantType) {
        this.merchantType = merchantType;
    }

    public int getUser_type_id() {
        return user_type_id;
    }

    public void setUser_type_id(int user_type_id) {
        this.user_type_id = user_type_id;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getImgNo1() {
        return imgNo1;
    }

    public void setImgNo1(String imgNo1) {
        this.imgNo1 = imgNo1;
    }

    public String getImgNo2() {
        return imgNo2;
    }

    public void setImgNo2(String imgNo2) {
        this.imgNo2 = imgNo2;
    }

    public String getImgNo3() {
        return imgNo3;
    }

    public void setImgNo3(String imgNo3) {
        this.imgNo3 = imgNo3;
    }

    public String getImgNo4() {
        return imgNo4;
    }

    public void setImgNo4(String imgNo4) {
        this.imgNo4 = imgNo4;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getInvite_code() {
        return invite_code;
    }

    public void setInvite_code(String invite_code) {
        this.invite_code = invite_code;
    }

    public int getIs_main() {
        return is_main;
    }

    public void setIs_main(int is_main) {
        this.is_main = is_main;
    }

    public String getDealer_id() {
        return dealer_id;
    }

    public void setDealer_id(String dealer_id) {
        this.dealer_id = dealer_id;
    }

    public String getAlipay_user_id() {
        return alipay_user_id;
    }

    public void setAlipay_user_id(String alipay_user_id) {
        if (alipay_user_id != null && !alipay_user_id.equals(""))
            this.alipay_user_id = alipay_user_id;
    }

    public String getWeixin_user_id() {
        return weixin_user_id;
    }

    public void setWeixin_user_id(String weixin_user_id) {
        if (weixin_user_id != null && !weixin_user_id.equals(""))
            this.weixin_user_id = weixin_user_id;
    }

    public String getCompany_name() {
        return company_name;
    }

    public void setCompany_name(String company_name) {
        this.company_name = company_name;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getKMRecordCode_dealerId() {
        return KMRecordCode_dealerId;
    }

    public void setKMRecordCode_dealerId(String kMRecordCode_dealerId) {
        KMRecordCode_dealerId = kMRecordCode_dealerId;
    }

    public String getKMRecordCode() {
        return Objects.isNull(KMRecordCode) ? "" : KMRecordCode;
    }

    public void setKMRecordCode(String kMRecordCode) {
        KMRecordCode = kMRecordCode;
    }

    public String getSignMergePicture() {
        return signMergePicture;
    }

    public void setSignMergePicture(String signMergePicture) {
        this.signMergePicture = signMergePicture;
    }

    public String getDevMacAddress() {
        return devMacAddress;
    }

    public void setDevMacAddress(String devMacAddress) {
        this.devMacAddress = devMacAddress;
    }

    public Long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }

    public int getMerchant_attribute() {
        return merchant_attribute;
    }

    public void setMerchant_attribute(int merchant_attribute) {
        this.merchant_attribute = merchant_attribute;
    }


    public String getSuper_dealer_id() {
        return super_dealer_id;
    }

    public void setSuper_dealer_id(String super_dealer_id) {
        if (super_dealer_id != null)
            this.super_dealer_id = super_dealer_id;
    }

    public String getSuper_dealer_name() {
        return super_dealer_name;
    }

    public void setSuper_dealer_name(String super_dealer_name) {
        if (super_dealer_name != null)
            this.super_dealer_name = super_dealer_name;
    }

    public String getPhoneModel() {
        return phoneModel;
    }

    public void setPhoneModel(String phoneModel) {
        this.phoneModel = phoneModel;
    }

    public String getDiscountModel() {
        return discountModel;
    }

    public void setDiscountModel(String discountModel) {
        this.discountModel = discountModel;
    }

    public String getTransterModel() {
        return transterModel;
    }

    public void setTransterModel(String transterModel) {
        this.transterModel = transterModel;
    }

    public long getSignTime() {
        return signTime;
    }

    public void setSignTime(long signTime) {
        this.signTime = signTime;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOldDealerId() {
        return oldDealerId;
    }

    public void setOldDealerId(String oldDealerId) {
        this.oldDealerId = oldDealerId;
    }

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        if (StringUtils.isBlank(period))
            this.period = "";
        else
            this.period = period;
    }

    public String getHeadPicture() {
        return headPicture;
    }

    public void setHeadPicture(String headPicture) {
        if (StringUtils.isBlank(headPicture))
            this.headPicture = "";
        else
            this.headPicture = headPicture;
    }

    public String getStoreAddress() {
        return storeAddress;
    }

    public void setStoreAddress(String storeAddress) {
        this.storeAddress = storeAddress;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public void setModifyTime(long modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getScopeId() {
        return scopeId;
    }

    public void setScopeId(String scopeId) {
        this.scopeId = scopeId;
    }

    public String getSuperSuperDealerId() {
        return superSuperDealerId;
    }

    public void setSuperSuperDealerId(String superSuperDealerId) {
        this.superSuperDealerId = superSuperDealerId;
    }

    public String getSuperSuperDealerName() {
        return superSuperDealerName;
    }

    public void setSuperSuperDealerName(String superSuperDealerName) {
        this.superSuperDealerName = superSuperDealerName;
    }

    public int getIsManage() {
        return isManage;
    }

    public void setIsManage(int isManage) {
        this.isManage = isManage;
    }

    public String getExtUserId() {
        return extUserId;
    }

    public void setExtUserId(String extUserId) {
        this.extUserId = extUserId;
    }

    public String getBusinessLicensePicture() {
        return businessLicensePicture;
    }

    public void setBusinessLicensePicture(String businessLicensePicture) {
        this.businessLicensePicture = businessLicensePicture;
    }

    public String getIdentityCard() {
        return identityCard;
    }

    public void setIdentityCard(String identityCard) {
        this.identityCard = identityCard;
    }

    public String getIdentityCardName() {
        return identityCardName;
    }

    public void setIdentityCardName(String identityCardName) {
        this.identityCardName = identityCardName;
    }

    public String getIdentityCardAddress() {
        return identityCardAddress;
    }

    public void setIdentityCardAddress(String identityCardAddress) {
        this.identityCardAddress = identityCardAddress;
    }

    public String getShopAddress() {
        return shopAddress;
    }

    public void setShopAddress(String shopAddress) {
        this.shopAddress = shopAddress;
    }

    public String getShopSpecificAddress() {
        return shopSpecificAddress;
    }

    public void setShopSpecificAddress(String shopSpecificAddress) {
        this.shopSpecificAddress = shopSpecificAddress;
    }

    public String getIdentifyPhotoHead() {
        return identifyPhotoHead;
    }

    public void setIdentifyPhotoHead(String identifyPhotoHead) {
        this.identifyPhotoHead = identifyPhotoHead;
    }

    public String getIdentifyPhotoFront() {
        return identifyPhotoFront;
    }

    public void setIdentifyPhotoFront(String identifyPhotoFront) {
        this.identifyPhotoFront = identifyPhotoFront;
    }

    public String getIdentifyPhotoReverse() {
        return identifyPhotoReverse;
    }

    public void setIdentifyPhotoReverse(String identifyPhotoReverse) {
        this.identifyPhotoReverse = identifyPhotoReverse;
    }

    public String getIdentifyPhotoHand() {
        return identifyPhotoHand;
    }

    public void setIdentifyPhotoHand(String identifyPhotoHand) {
        this.identifyPhotoHand = identifyPhotoHand;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("SelfRegistering{");
        sb.append("phone='").append(phone).append('\'');
        sb.append(", supper_invite_code='").append(supper_invite_code).append('\'');
        sb.append(", registType=").append(registType);
        sb.append(", merchantType=").append(merchantType);
        sb.append(", user_type_id=").append(user_type_id);
        sb.append(", user_name='").append(user_name).append('\'');
        sb.append(", company_name='").append(company_name).append('\'');
        sb.append(", idCard='").append(idCard).append('\'');
        sb.append(", cityCode='").append(cityCode).append('\'');
        sb.append(", cityName='").append(cityName).append('\'');
        sb.append(", address='").append(address).append('\'');
        sb.append(", imgNo1='").append(imgNo1).append('\'');
        sb.append(", imgNo2='").append(imgNo2).append('\'');
        sb.append(", imgNo3='").append(imgNo3).append('\'');
        sb.append(", imgNo4='").append(imgNo4).append('\'');
        sb.append(", businessLicensePicture='").append(businessLicensePicture).append('\'');
        sb.append(", createTime=").append(createTime);
        sb.append(", status=").append(status);
        sb.append(", user_id='").append(user_id).append('\'');
        sb.append(", invite_code='").append(invite_code).append('\'');
        sb.append(", is_main=").append(is_main);
        sb.append(", dealer_id='").append(dealer_id).append('\'');
        sb.append(", alipay_user_id='").append(alipay_user_id).append('\'');
        sb.append(", weixin_user_id='").append(weixin_user_id).append('\'');
        sb.append(", KMRecordCode='").append(KMRecordCode).append('\'');
        sb.append(", KMRecordCode_dealerId='").append(KMRecordCode_dealerId).append('\'');
        sb.append(", osversion='").append(osversion).append('\'');
        sb.append(", appversion='").append(appversion).append('\'');
        sb.append(", ostype='").append(ostype).append('\'');
        sb.append(", phonetype='").append(phonetype).append('\'');
        sb.append(", net='").append(net).append('\'');
        sb.append(", applicationID='").append(applicationID).append('\'');
        sb.append(", host_ip='").append(host_ip).append('\'');
        sb.append(", longitude='").append(longitude).append('\'');
        sb.append(", latitude='").append(latitude).append('\'');
        sb.append(", signMergePicture='").append(signMergePicture).append('\'');
        sb.append(", devMacAddress='").append(devMacAddress).append('\'');
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", merchant_attribute=").append(merchant_attribute);
        sb.append(", type=").append(type);
        sb.append(", scope='").append(scope).append('\'');
        sb.append(", popchannel='").append(popchannel).append('\'');
        sb.append(", head_popchannel='").append(head_popchannel).append('\'');
        sb.append(", popchannel_name='").append(popchannel_name).append('\'');
        sb.append(", head_popchannel_name='").append(head_popchannel_name).append('\'');
        sb.append(", super_dealer_id='").append(super_dealer_id).append('\'');
        sb.append(", super_dealer_name='").append(super_dealer_name).append('\'');
        sb.append(", phoneModel='").append(phoneModel).append('\'');
        sb.append(", discountModel='").append(discountModel).append('\'');
        sb.append(", transterModel='").append(transterModel).append('\'');
        sb.append(", signTime=").append(signTime);
        sb.append(", orderId='").append(orderId).append('\'');
        sb.append(", oldDealerId='").append(oldDealerId).append('\'');
        sb.append(", period='").append(period).append('\'');
        sb.append(", headPicture='").append(headPicture).append('\'');
        sb.append(", storeAddress='").append(storeAddress).append('\'');
        sb.append(", scopeId='").append(scopeId).append('\'');
        sb.append(", superSuperDealerId='").append(superSuperDealerId).append('\'');
        sb.append(", superSuperDealerName='").append(superSuperDealerName).append('\'');
        sb.append(", isManage=").append(isManage);
        sb.append(", packModel='").append(packModel).append('\'');
        sb.append(", dwkModel='").append(dwkModel).append('\'');
        sb.append(", merchantId='").append(merchantId).append('\'');
        sb.append(", sourceType='").append(sourceType).append('\'');
        sb.append(", extUserId='").append(extUserId).append('\'');
        sb.append(", identityCard='").append(identityCard).append('\'');
        sb.append(", identityCardName='").append(identityCardName).append('\'');
        sb.append(", identityCardAddress='").append(identityCardAddress).append('\'');
        sb.append(", shopAddress='").append(shopAddress).append('\'');
        sb.append(", shopSpecificAddress='").append(shopSpecificAddress).append('\'');
        sb.append(", identifyPhotoHead='").append(identifyPhotoHead).append('\'');
        sb.append(", identifyPhotoFront='").append(identifyPhotoFront).append('\'');
        sb.append(", identifyPhotoReverse='").append(identifyPhotoReverse).append('\'');
        sb.append(", identifyPhotoHand='").append(identifyPhotoHand).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
